<?php
/*
 * Created on 2011-11-17
 *
 * To change the template for this generated file go to
 * Window - Preferences - PHPeclipse - PHP - Code Templates
 */
 header('Content-Type:text/html; charset=utf-8');
if ($_GET['type'] && $_GET['id']){
	$houseid = $_GET['id']; //房屋id
	$type = $_GET['type']; //操作方式 -1为删除
	require_once ("includes/configure.php");
	require_once ("includes/database.php");
	$db = Database :: Connect();
		$sql = "delete from shoucang where id=$houseid";
		$db->Execute($sql);
		echo "<script>alert('删除成功');location='geren.php?main=guanzhu_".$type.";</script>";

		$db->Close();
}
?>
